package com.rdc.qingkou.contract;

import android.content.Context;

import com.rdc.qingkou.entity.MessageResult;
import com.rdc.qingkou.entity.SubscribeListResult;
import com.rdc.qingkou.entity.SubscribeUserResult;
import com.rdc.qingkou.model.imodel.OnHttpCallBack;

/**
 * Created by WaxBerry on 2017/9/26.
 */

public class SubscribeContract {

    public interface ISubscribeView {

        void showBottom(int lastIndex);

        Context getCurContext();//获取上下文对象

        void showProgress();//显示进度条

        void hideProgress();//隐藏进度条

        void showData(SubscribeListResult subscribeResult);//显示数据到View上



        void showInfo(String info);//提示用户,提升友好交互

        void showSubscribeList(SubscribeListResult list);

        void subscribeUser(SubscribeUserResult list);

        void showFansList(SubscribeListResult list);


    }


    public interface ISubscribeModel {

        void getMessage(Integer integer, OnHttpCallBack<MessageResult> callBack);

        void subscribeUser(Integer userId, Integer subscribeId, OnHttpCallBack<SubscribeUserResult> callBack); //关注/订阅


        void getSubscribeList(Integer userId, OnHttpCallBack<SubscribeListResult> callBack);


        void getFansList(Integer userId, OnHttpCallBack<SubscribeListResult> callBack);

    }


    public interface ISubscribePresenter {

        void getUnReadNewsNum();  //获取未读信息数目

        void getMessage(); //获取信息

        void loadMoreMessage();  //加载更多

        void subscribeUser(Integer userId, Integer subscribeId); //关注/订阅

        void getSubscribeList(Integer userId);

        void getFansList(Integer userId);

    }
}
